// 自定义插件
import store from "@/store";
import Vue from "vue";
export default  function(){
    Vue.directive('has',{
        inserted:(el,bindings)=>{
            const buttons = store.state.user.buttons
            if(buttons.indexOf(bindings.value) === -1){
              el.parentNode.removeChild(el)
            }
      }
    })
}



                                                                                                                                                                                                                                                                                                                                                                                                        


